<tc_include file="Public:header"/>
<section class="index-course-list lazyload">
    <div class="container">
        <div class="row">
            <form class="form-inline navbar-left" method="post" action="{:U('course/course/coursesearch')}">
                <div class="col-xs-8">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="输入菜名" name="kw_name" value="{:I('get.kw_name')}">
                    </div>
                </div>
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-default">搜索</button>
                </div>
            </form>
        </div>
        <div class="course-list">
            <div class="row">
                <p style="padding: 8px 16px">共找到 <strong>{$count}</strong> 条结果</p>
                <volist name="results" id="vo">
                    <div class="col-lg-3 col-md-4 col-xs-6">
                        <div class="course-item">
                            <div class="course-img">
                                <a href="{:u('course/Course/courseinfo',array('id'=>$vo['id']))}" target="_blank"><img
                                        alt="{$vo['cs_name']}" class="img-responsive" src="{$vo['cs_picture']}"/></a>
                            </div>
                            <div class="course-info" style="margin-bottom:10px;">
                                <div class="title"><a href="{:u('course/Course/courseinfo',array('id'=>$vo['id']))}">{$vo['cs_name']}</a>
                                </div>
                                <div class="metas clearfix">
                                    <span class="score">评分：<em>0</em></span>
                                    <span class="num">1人在学</span>
                                    <if condition="$vo['cs_price'] neq 1">
                                        <span class="price  price-num ">免费</span>
                                        <else/>
                                        <span class="price price-num">¥{$vo['cs_price']}.00</span>
                                    </if>
                                </div>
                            </div>
                        </div>
                    </div>
                </volist>
            </div>
        </div>
    </div>
</section>
<tc_include file="Public:scripts"/>
<tc_include file="Public:footer"/>